<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>js</title>
</head>
<body>  

    <div id="app">
        <div>{{student.name}}</div>
        <p>{{student.age}}</p>
    </div>
    
    <script>

        /* function Cue () {

        }
        
        let app = document.querySelector("#app");
        let nodes = app.childNodes;
        Array.from(nodes).forEach(node=>{
            let text = node.textContent;
            let reg = /\{\{(.*)\}\}/;
            if(node.nodeType===1 && reg.test(text)){
                console.log(RegExp.$1);
            }
        }) */

        child = document.body.childNodes;
        console.log(child);

        
    </script>

</body>
</html>